package com.aramis.mydytt.ui.topic.detail

import android.view.ViewGroup
import android.widget.TextView
import com.aramis.mydytt.R
import com.aramis.mydytt.ui.base.BaseViewHolder
import com.aramis.mydytt.ui.bean.MovieSpecialDetailBean
import com.facebook.drawee.view.SimpleDraweeView

/**
 * Description: TopicDetailListAdapterViewHolder
 * @author lizhidan
 * Created: 2021/5/24
 */
class TopicDetailListAdapterTitleViewHolder(parent: ViewGroup) :
    BaseViewHolder<MovieSpecialDetailBean>(parent, R.layout.item_topic_detail_title) {
    private val coverImageView: SimpleDraweeView = itemView.findViewById(R.id.image_topic_detail_cover)
    private val titleView: TextView = itemView.findViewById(R.id.text_topic_detail_name)
    private val contentView: TextView = itemView.findViewById(R.id.text_topic_detail_description)

    override fun bind(m: MovieSpecialDetailBean, position: Int) {
        coverImageView.setImageURI(m.cover)
        titleView.text = m.title
        contentView.text = m.content
    }

}